package buxfer;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import java.util.concurrent.TimeUnit;

/**
 * Created with IntelliJ IDEA.
 * User: stem
 * Date: 14.11.13
 * Time: 22:56
 * To change this template use File | Settings | File Templates.
 */
public class buxferTest1 {
    private WebDriver driver;
    private String loginTrue="stem@mail.ru";
    private String passTrue="stem25";
    //@BeforeTest
    public  void before(){
        driver=new FirefoxDriver();
        driver.get("https://www.buxfer.com");
        driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
    }
   // @AfterTest
    public void after(){
        driver.manage().deleteAllCookies();
        driver.quit();
    }
    //@Test
    public void loginTrue(){
        Home home=new Home(driver);

        assertPage asrtpage= home.login(loginTrue,passTrue);
        asrtpage.assertLoginTrue( asrtpage.getUrl());

    }

}
